package com.ls.fw.data.support.parse;

import org.apache.solr.common.SolrInputDocument;

/**
 * Writes documents to a Solr server.
 */
public interface SolrUpdateWriter {
    
    /**
     * Write a single SolrInputDocument.
     * 
     * @param solrDocument document to be written
     */
    void add(SolrInputDocument solrDocument);

    void deleteById(String documentId);

    void deleteByQuery(String query);

}
